package com.wzh.soundCode.jdk.map;


import com.wzh.annotation.MyAnnotation;
import jdk.nashorn.internal.ir.Node;

import java.util.AbstractMap;
import java.util.HashMap;
import java.util.Set;

/**
 * @description:
 * @author: WZH
 * @time: 2021/7/19 9:21
 */
public class MyMap<K, V> extends AbstractMap<K, V> {

    //最大长度
    static final int MAXIMUM_CAPACITY = 1 << 30;

    //扩展因子
    private float loadFactor = 0.75f;

    //默认长度(16)
    private int threshold;

    //HashMap table
    private Node[] table = null;

    //记录实际的节点个数
    private int size = 0;

    public MyMap() {
        threshold = 1 << 4;
    }

    public MyMap(int initialCapacity,float loadFactor) throws IllegalAccessException {
        if(initialCapacity < 0)
            throw new IllegalAccessException(""+initialCapacity);
    }

    @Override
    public Set<Entry<K, V>> entrySet() {
        return null;
    }
}




